package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ComplaintCertificateMapper;
import com.ruoyi.system.domain.ComplaintCertificate;
import com.ruoyi.system.service.IComplaintCertificateService;

/**
 * 投诉凭证Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-28
 */
@Service
public class ComplaintCertificateServiceImpl implements IComplaintCertificateService 
{
    @Autowired
    private ComplaintCertificateMapper complaintCertificateMapper;

    /**
     * 查询投诉凭证
     * 
     * @param ccId 投诉凭证ID
     * @return 投诉凭证
     */
    @Override
    public ComplaintCertificate selectComplaintCertificateById(Long ccId)
    {
        return complaintCertificateMapper.selectComplaintCertificateById(ccId);
    }

    /**
     * 查询投诉凭证列表
     * 
     * @param complaintCertificate 投诉凭证
     * @return 投诉凭证
     */
    @Override
    public List<ComplaintCertificate> selectComplaintCertificateList(ComplaintCertificate complaintCertificate)
    {
        return complaintCertificateMapper.selectComplaintCertificateList(complaintCertificate);
    }

    /**
     * 新增投诉凭证
     * 
     * @param complaintCertificate 投诉凭证
     * @return 结果
     */
    @Override
    public int insertComplaintCertificate(ComplaintCertificate complaintCertificate)
    {
        return complaintCertificateMapper.insertComplaintCertificate(complaintCertificate);
    }

    /**
     * 修改投诉凭证
     * 
     * @param complaintCertificate 投诉凭证
     * @return 结果
     */
    @Override
    public int updateComplaintCertificate(ComplaintCertificate complaintCertificate)
    {
        return complaintCertificateMapper.updateComplaintCertificate(complaintCertificate);
    }

    /**
     * 批量删除投诉凭证
     * 
     * @param ccIds 需要删除的投诉凭证ID
     * @return 结果
     */
    @Override
    public int deleteComplaintCertificateByIds(Long[] ccIds)
    {
        return complaintCertificateMapper.deleteComplaintCertificateByIds(ccIds);
    }

    /**
     * 删除投诉凭证信息
     * 
     * @param ccId 投诉凭证ID
     * @return 结果
     */
    @Override
    public int deleteComplaintCertificateById(Long ccId)
    {
        return complaintCertificateMapper.deleteComplaintCertificateById(ccId);
    }
}
